package com.ruoyi.project.gzbook.recommand.mapper;

import java.util.List;
import com.ruoyi.project.gzbook.recommand.domain.DgWeekRecommand;

/**
 * 每周推荐Mapper接口
 * 
 * @author mhg
 * @date 2021-10-06
 */
public interface DgWeekRecommandMapper 
{
    /**
     * 查询每周推荐
     * 
     * @param id 每周推荐主键
     * @return 每周推荐
     */
    public DgWeekRecommand selectDgWeekRecommandById(Long id);

    /**
     * 查询每周推荐列表
     * 
     * @param dgWeekRecommand 每周推荐
     * @return 每周推荐集合
     */
    public List<DgWeekRecommand> selectDgWeekRecommandList(DgWeekRecommand dgWeekRecommand);

    /**
     * 新增每周推荐
     * 
     * @param dgWeekRecommand 每周推荐
     * @return 结果
     */
    public int insertDgWeekRecommand(DgWeekRecommand dgWeekRecommand);

    /**
     * 修改每周推荐
     * 
     * @param dgWeekRecommand 每周推荐
     * @return 结果
     */
    public int updateDgWeekRecommand(DgWeekRecommand dgWeekRecommand);

    /**
     * 删除每周推荐
     * 
     * @param id 每周推荐主键
     * @return 结果
     */
    public int deleteDgWeekRecommandById(Long id);

    /**
     * 批量删除每周推荐
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDgWeekRecommandByIds(String[] ids);
}
